package cn.linstudy.blog.dto;

import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import lombok.Data;

/**
 * @Author XiaoLin
 * @Date 2021/12/23 11:42
 * @Description
 */
@Data
public class UserGrantDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户id列表")
    @NotNull(message = "id列表不能为空")
    private Integer userId;

    @ApiModelProperty(value = "角色id列表")
    @NotEmpty(message = "id列表不能为空")
    private Integer[] roleIdList;
}